home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / usenet / sources / volume90 / examples / yafr_1.15 / WdwDefs.h < prev    next >
C/C++ Source or Header  |  1990-03-04  |  10KB  |  845 lines

  1.  
  2. struct Window *FNWindow;
  3. #define Rp FNWindow->RPort
  4. UBYTE DIRUNDOBUFFER[150];
  5. UBYTE FNUNDOBUFFER[33];
  6. UBYTE EXTUNDOBUFFER[18];
  7.  
  8. struct PropInfo SliderSInfo = {
  9.    AUTOKNOB+FREEVERT,
  10.    -1,661,
  11.    655,655
  12. };
  13.  
  14. struct Image Image1 = {
  15.    0,1,
  16.    15,4,
  17.    0,
  18.    NULL,
  19.    0x0000,0x0000,
  20.    NULL
  21. };
  22.  
  23. struct Gadget Slider = {
  24.    NULL,
  25.    217,35,
  26.    23,110,
  27.    NULL,
  28.    FOLLOWMOUSE,
  29.    PROPGADGET,
  30.    (APTR)&Image1,
  31.    NULL,
  32.    NULL,
  33.    NULL,
  34.    (APTR)&SliderSInfo,
  35.    16,
  36.    NULL
  37. };
  38.  
  39. USHORT chip ImageData2[] = {
  40.    0xFFFF,0xFFFF,0xFFFE,0xC000,0x0000,0x0006,0xC006,0x0007,
  41.    0x0006,0xC000,0x000D,0x8006,0xC00E,0x1F0C,0x0F06,0xC006,
  42.    0x199E,0x1986,0xC006,0x198C,0x1986,0xC606,0x198C,0x1986,
  43.    0xC60F,0x199E,0x0F06,0xC000,0x0000,0x0006,0xFFFF,0xFFFF,
  44.    0xFFFE
  45. };
  46.  
  47. struct Image Image2 = {
  48.    0,0,
  49.    47,11,
  50.    2,
  51.    ImageData2,
  52.    0x0001,0x0000,
  53.    NULL
  54. };
  55.  
  56. USHORT chip ImageData3[] = {
  57.    0x1FFF,0xFFFF,0xFFF0,0xC000,0x0000,0x0006,0xC006,0x0007,
  58.    0x0006,0xC000,0x000C,0x0006,0xC00E,0x0700,0x0F06,0xC006,
  59.    0x181E,0x1986,0xC006,0x0180,0x1986,0xC600,0x198C,0x1986,
  60.    0xC60F,0x199E,0x0006,0xC000,0x0000,0x0006,0x1FFF,0xFFFF,
  61.    0xFFF0,0xE000,0x0000,0x000E,0x1E00,0x0000,0x00F0,0x01F0,
  62.    0x0000,0x1F00,0x000F,0x8003,0xE000,0x0000,0x783C,0x0000,
  63.    0x0000,0x07C0,0x0000,0x0000,0x783C,0x0000,0x000F,0x8003,
  64.    0xE000,0x01F0,0x0000,0x1F00,0x1E00,0x0000,0x00F0,0xE000,
  65.    0x0000,0x000E
  66. };
  67.  
  68. struct Image Image3 = {
  69.    0,0,
  70.    47,11,
  71.    2,
  72.    ImageData3,
  73.    0x0003,0x0000,
  74.    NULL
  75. };
  76.  
  77. struct Gadget Info = {
  78.    &Slider,
  79.    165,11,
  80.    47,11,
  81.    GADGHIMAGE+GADGIMAGE,
  82.    GADGIMMEDIATE+TOGGLESELECT,
  83.    BOOLGADGET,
  84.    (APTR)&Image2,
  85.    (APTR)&Image3,
  86.    NULL,
  87.    NULL,
  88.    NULL,
  89.    18,
  90.    NULL
  91. };
  92.  
  93. UBYTE filenameSIBuff[33];
  94. struct StringInfo filenameSInfo = {
  95.    filenameSIBuff,
  96.    FNUNDOBUFFER,
  97.    0,
  98.    33,
  99.    0,
  100.    0,0,0,0,0,
  101.    0,
  102.    0,
  103.    NULL
  104. };
  105.  
  106. SHORT BorderVectors1[] = {
  107.    0,0,
  108.    217,0,
  109.    217,10,
  110.    0,10,
  111.    0,0
  112. };
  113. struct Border Border1 = {
  114.    -2,-1,
  115.    1,0,JAM1,
  116.    5,
  117.    BorderVectors1,
  118.    NULL
  119. };
  120.  
  121. struct Gadget filename = {
  122.    &Info,
  123.    86,159,
  124.    214,9,
  125.    NULL,
  126.    RELVERIFY,
  127.    STRGADGET,
  128.    (APTR)&Border1,
  129.    NULL,
  130.    NULL,
  131.    NULL,
  132.    (APTR)&filenameSInfo,
  133.    12,
  134.    NULL
  135. };
  136.  
  137. UBYTE ExtNameSIBuff[18];
  138. struct StringInfo ExtNameSInfo = {
  139.    ExtNameSIBuff,
  140.    EXTUNDOBUFFER,
  141.    0,
  142.    18,
  143.    0,
  144.    0,0,0,0,0,
  145.    0,
  146.    0,
  147.    NULL
  148. };
  149.  
  150. SHORT BorderVectors2[] = {
  151.    0,0,
  152.    155,0,
  153.    155,10,
  154.    0,10,
  155.    0,0
  156. };
  157. struct Border Border2 = {
  158.    -2,-1,
  159.    1,0,JAM1,
  160.    5,
  161.    BorderVectors2,
  162.    NULL
  163. };
  164.  
  165. struct Gadget ExtName = {
  166.    &filename,
  167.    86,147,
  168.    152,9,
  169.    NULL,
  170.    RELVERIFY,
  171.    STRGADGET,
  172.    (APTR)&Border2,
  173.    NULL,
  174.    NULL,
  175.    NULL,
  176.    (APTR)&ExtNameSInfo,
  177.    18,
  178.    NULL
  179. };
  180.  
  181. SHORT BorderVectors3[] = {
  182.    0,0,
  183.    89,0,
  184.    89,12,
  185.    0,12,
  186.    0,1
  187. };
  188. struct Border Border3 = {
  189.    -1,-1,
  190.    1,0,JAM1,
  191.    5,
  192.    BorderVectors3,
  193.    NULL
  194. };
  195.  
  196. struct IntuiText IText23 = {
  197.    1,0,JAM1,
  198.    37,2,
  199.    NULL,
  200.    "Ok",
  201.    NULL
  202. };
  203.  
  204. struct Gadget ok = {
  205.    &ExtName,
  206.    6,172,
  207.    88,11,
  208.    NULL,
  209.    RELVERIFY,
  210.    BOOLGADGET,
  211.    (APTR)&Border3,
  212.    NULL,
  213.    &IText23,
  214.    NULL,
  215.    NULL,
  216.    13,
  217.    NULL
  218. };
  219.  
  220. SHORT BorderVectors4[] = {
  221.    0,0,
  222.    84,0,
  223.    84,10,
  224.    0,10,
  225.    0,1
  226. };
  227. struct Border Border4 = {
  228.    -1,-1,
  229.    1,0,JAM1,
  230.    5,
  231.    BorderVectors4,
  232.    NULL
  233. };
  234.  
  235. struct IntuiText IText24 = {
  236.    1,0,JAM1,
  237.    19,1,
  238.    NULL,
  239.    "Parent",
  240.    NULL
  241. };
  242.  
  243. struct Gadget parent = {
  244.    &ok,
  245.    218,12,
  246.    83,9,
  247.    NULL,
  248.    RELVERIFY,
  249.    BOOLGADGET,
  250.    (APTR)&Border4,
  251.    NULL,
  252.    &IText24,
  253.    NULL,
  254.    NULL,
  255.    15,
  256.    NULL
  257. };
  258.  
  259. SHORT BorderVectors5[] = {
  260.    0,0,
  261.    89,0,
  262.    89,12,
  263.    0,12,
  264.    0,1
  265. };
  266. struct Border Border5 = {
  267.    -1,-1,
  268.    1,0,JAM1,
  269.    5,
  270.    BorderVectors5,
  271.    NULL
  272. };
  273.  
  274. struct IntuiText IText25 = {
  275.    1,0,JAM1,
  276.    21,2,
  277.    NULL,
  278.    "Cancel",
  279.    NULL
  280. };
  281.  
  282. struct Gadget cancel = {
  283.    &parent,
  284.    213,172,
  285.    88,11,
  286.    NULL,
  287.    RELVERIFY,
  288.    BOOLGADGET,
  289.    (APTR)&Border5,
  290.    NULL,
  291.    &IText25,
  292.    NULL,
  293.    NULL,
  294.    14,
  295.    NULL
  296. };
  297.  
  298. SHORT BorderVectors6[] = {
  299.    0,0,
  300.    57,0,
  301.    57,10,
  302.    0,10,
  303.    0,1
  304. };
  305. struct Border Border6 = {
  306.    -1,-1,
  307.    1,0,JAM1,
  308.    5,
  309.    BorderVectors6,
  310.    NULL
  311. };
  312.  
  313. struct IntuiText IText26 = {
  314.    1,0,JAM1,
  315.    10,1,
  316.    NULL,
  317.    "pipe:",
  318.    NULL
  319. };
  320.  
  321. struct Gadget pipe = {
  322.    &cancel,
  323.    245,147,
  324.    56,9,
  325.    NULL,
  326.    RELVERIFY,
  327.    BOOLGADGET,
  328.    (APTR)&Border6,
  329.    NULL,
  330.    &IText26,
  331.    NULL,
  332.    NULL,
  333.    10,
  334.    NULL
  335. };
  336.  
  337. SHORT BorderVectors7[] = {
  338.    0,0,
  339.    57,0,
  340.    57,10,
  341.    0,10,
  342.    0,1
  343. };
  344. struct Border Border7 = {
  345.    -1,-1,
  346.    1,0,JAM1,
  347.    5,
  348.    BorderVectors7,
  349.    NULL
  350. };
  351.  
  352. struct IntuiText IText27 = {
  353.    1,0,JAM1,
  354.    13,1,
  355.    NULL,
  356.    "RAD:",
  357.    NULL
  358. };
  359.  
  360. struct Gadget rad = {
  361.    &pipe,
  362.    245,135,
  363.    56,9,
  364.    NULL,
  365.    RELVERIFY,
  366.    BOOLGADGET,
  367.    (APTR)&Border7,
  368.    NULL,
  369.    &IText27,
  370.    NULL,
  371.    NULL,
  372.    9,
  373.    NULL
  374. };
  375.  
  376. SHORT BorderVectors8[] = {
  377.    0,0,
  378.    57,0,
  379.    57,10,
  380.    0,10,
  381.    0,1
  382. };
  383. struct Border Border8 = {
  384.    -1,-1,
  385.    1,0,JAM1,
  386.    5,
  387.    BorderVectors8,
  388.    NULL
  389. };
  390.  
  391. struct IntuiText IText28 = {
  392.    1,0,JAM1,
  393.    13,1,
  394.    NULL,
  395.    "RAM:",
  396.    NULL
  397. };
  398.  
  399. struct Gadget Ram = {
  400.    &rad,
  401.    245,124,
  402.    56,9,
  403.    NULL,
  404.    RELVERIFY,
  405.    BOOLGADGET,
  406.    (APTR)&Border8,
  407.    NULL,
  408.    &IText28,
  409.    NULL,
  410.    NULL,
  411.    8,
  412.    NULL
  413. };
  414.  
  415. SHORT BorderVectors9[] = {
  416.    0,0,
  417.    57,0,
  418.    57,10,
  419.    0,10,
  420.    0,1
  421. };
  422. struct Border Border9 = {
  423.    -1,-1,
  424.    1,0,JAM1,
  425.    5,
  426.    BorderVectors9,
  427.    NULL
  428. };
  429.  
  430. struct IntuiText IText29 = {
  431.    1,0,JAM1,
  432.    13,1,
  433.    NULL,
  434.    "VDK:",
  435.    NULL
  436. };
  437.  
  438. struct Gadget vdk = {
  439.    &Ram,
  440.    245,113,
  441.    56,9,
  442.    NULL,
  443.    RELVERIFY,
  444.    BOOLGADGET,
  445.    (APTR)&Border9,
  446.    NULL,
  447.    &IText29,
  448.    NULL,
  449.    NULL,
  450.    7,
  451.    NULL
  452. };
  453.  
  454. SHORT BorderVectors10[] = {
  455.    0,0,
  456.    57,0,
  457.    57,10,
  458.    0,10,
  459.    0,1
  460. };
  461. struct Border Border10 = {
  462.    -1,-1,
  463.    1,0,JAM1,
  464.    5,
  465.    BorderVectors10,
  466.    NULL
  467. };
  468.  
  469. struct IntuiText IText30 = {
  470.    1,0,JAM1,
  471.    13,1,
  472.    NULL,
  473.    "VD0:",
  474.    NULL
  475. };
  476.  
  477. struct Gadget vd0 = {
  478.    &vdk,
  479.    245,102,
  480.    56,9,
  481.    NULL,
  482.    RELVERIFY,
  483.    BOOLGADGET,
  484.    (APTR)&Border10,
  485.    NULL,
  486.    &IText30,
  487.    NULL,
  488.    NULL,
  489.    6,
  490.    NULL
  491. };
  492.  
  493. SHORT BorderVectors11[] = {
  494.    0,0,
  495.    57,0,
  496.    57,10,
  497.    0,10,
  498.    0,1
  499. };
  500. struct Border Border11 = {
  501.    -1,-1,
  502.    1,0,JAM1,
  503.    5,
  504.    BorderVectors11,
  505.    NULL
  506. };
  507.  
  508. struct IntuiText IText31 = {
  509.    1,0,JAM1,
  510.    13,1,
  511.    NULL,
  512.    "DH2:",
  513.    NULL
  514. };
  515.  
  516. struct Gadget dh2 = {
  517.    &vd0,
  518.    245,91,
  519.    56,9,
  520.    NULL,
  521.    RELVERIFY,
  522.    BOOLGADGET,
  523.    (APTR)&Border11,
  524.    NULL,
  525.    &IText31,
  526.    NULL,
  527.    NULL,
  528.    5,
  529.    NULL
  530. };
  531.  
  532. SHORT BorderVectors12[] = {
  533.    0,0,
  534.    57,0,
  535.    57,10,
  536.    0,10,
  537.    0,1
  538. };
  539. struct Border Border12 = {
  540.    -1,-1,
  541.    1,0,JAM1,
  542.    5,
  543.    BorderVectors12,
  544.    NULL
  545. };
  546.  
  547. struct IntuiText IText32 = {
  548.    1,0,JAM1,
  549.    13,1,
  550.    NULL,
  551.    "DH1:",
  552.    NULL
  553. };
  554.  
  555. struct Gadget dh1 = {
  556.    &dh2,
  557.    245,80,
  558.    56,9,
  559.    NULL,
  560.    RELVERIFY,
  561.    BOOLGADGET,
  562.    (APTR)&Border12,
  563.    NULL,
  564.    &IText32,
  565.    NULL,
  566.    NULL,
  567.    4,
  568.    NULL
  569. };
  570.  
  571. SHORT BorderVectors13[] = {
  572.    0,0,
  573.    57,0,
  574.    57,10,
  575.    0,10,
  576.    0,1
  577. };
  578. struct Border Border13 = {
  579.    -1,-1,
  580.    1,0,JAM1,
  581.    5,
  582.    BorderVectors13,
  583.    NULL
  584. };
  585.  
  586. struct IntuiText IText33 = {
  587.    1,0,JAM1,
  588.    13,1,
  589.    NULL,
  590.    "DF2:",
  591.    NULL
  592. };
  593.  
  594. struct Gadget df2 = {
  595.    &dh1,
  596.    245,58,
  597.    56,9,
  598.    NULL,
  599.    RELVERIFY,
  600.    BOOLGADGET,
  601.    (APTR)&Border13,
  602.    NULL,
  603.    &IText33,
  604.    NULL,
  605.    NULL,
  606.    2,
  607.    NULL
  608. };
  609.  
  610. SHORT BorderVectors14[] = {
  611.    0,0,
  612.    57,0,
  613.    57,10,
  614.    0,10,
  615.    0,1
  616. };
  617. struct Border Border14 = {
  618.    -1,-1,
  619.    1,0,JAM1,
  620.    5,
  621.    BorderVectors14,
  622.    NULL
  623. };
  624.  
  625. struct IntuiText IText34 = {
  626.    1,0,JAM1,
  627.    13,1,
  628.    NULL,
  629.    "DH0:",
  630.    NULL
  631. };
  632.  
  633. struct Gadget dh0 = {
  634.    &df2,
  635.    245,69,
  636.    56,9,
  637.    NULL,
  638.    RELVERIFY,
  639.    BOOLGADGET,
  640.    (APTR)&Border14,
  641.    NULL,
  642.    &IText34,
  643.    NULL,
  644.    NULL,
  645.    3,
  646.    NULL
  647. };
  648.  
  649. SHORT BorderVectors15[] = {
  650.    0,0,
  651.    57,0,
  652.    57,10,
  653.    0,10,
  654.    0,1
  655. };
  656. struct Border Border15 = {
  657.    -1,-1,
  658.    1,0,JAM1,
  659.    5,
  660.    BorderVectors15,
  661.    NULL
  662. };
  663.  
  664. struct IntuiText IText35 = {
  665.    1,0,JAM1,
  666.    13,1,
  667.    NULL,
  668.    "DF1:",
  669.    NULL
  670. };
  671.  
  672. struct Gadget df1 = {
  673.    &dh0,
  674.    245,47,
  675.    56,9,
  676.    NULL,
  677.    RELVERIFY,
  678.    BOOLGADGET,
  679.    (APTR)&Border15,
  680.    NULL,
  681.    &IText35,
  682.    NULL,
  683.    NULL,
  684.    1,
  685.    NULL
  686. };
  687.  
  688. SHORT BorderVectors16[] = {
  689.    0,0,
  690.    57,0,
  691.    57,10,
  692.    0,10,
  693.    0,1
  694. };
  695. struct Border Border16 = {
  696.    -1,-1,
  697.    1,0,JAM1,
  698.    5,
  699.    BorderVectors16,
  700.    NULL
  701. };
  702.  
  703. struct IntuiText IText36 = {
  704.    1,0,JAM1,
  705.    13,1,
  706.    NULL,
  707.    "DF0:",
  708.    NULL
  709. };
  710.  
  711. struct Gadget df0 = {
  712.    &df1,
  713.    245,36,
  714.    56,9,
  715.    NULL,
  716.    RELVERIFY,
  717.    BOOLGADGET,
  718.    (APTR)&Border16,
  719.    NULL,
  720.    &IText36,
  721.    NULL,
  722.    NULL,
  723.    0,
  724.    NULL
  725. };
  726.  
  727. SHORT BorderVectors17[] = {
  728.    0,0,
  729.    207,0,
  730.    207,109,
  731.    0,109,
  732.    0,0
  733. };
  734. struct Border Border17 = {
  735.    -2,-1,
  736.    1,0,JAM1,
  737.    5,
  738.    BorderVectors17,
  739.    NULL
  740. };
  741.  
  742. struct Gadget filenamebox = {
  743.    &df0,
  744.    6,36,
  745.    204,108,
  746.    GADGHBOX+GADGHIMAGE,
  747.    GADGIMMEDIATE,
  748.    BOOLGADGET,
  749.    (APTR)&Border17,
  750.    NULL,
  751.    NULL,
  752.    NULL,
  753.    NULL,
  754.    17,
  755.    NULL
  756. };
  757.  
  758. UBYTE DirNameSIBuff[150];
  759. struct StringInfo DirNameSInfo = {
  760.    DirNameSIBuff,
  761.    DIRUNDOBUFFER,
  762.    0,
  763.    150,
  764.    0,
  765.    0,0,0,0,0,
  766.    0,
  767.    0,
  768.    NULL
  769. };
  770.  
  771. SHORT BorderVectors18[] = {
  772.    0,0,
  773.    297,0,
  774.    297,10,
  775.    0,10,
  776.    0,0
  777. };
  778. struct Border Border18 = {
  779.    -2,-1,
  780.    1,0,JAM1,
  781.    5,
  782.    BorderVectors18,
  783.    NULL
  784. };
  785.  
  786. struct Gadget DirName = {
  787.    &filenamebox,
  788.    6,24,
  789.    294,9,
  790.    NULL,
  791.    RELVERIFY,
  792.    STRGADGET,
  793.    (APTR)&Border18,
  794.    NULL,
  795.    NULL,
  796.    NULL,
  797.    (APTR)&DirNameSInfo,
  798.    11,
  799.    NULL
  800. };
  801.  
  802. #define GadgetList2 DirName
  803.  
  804. struct IntuiText IText39 = {
  805.    1,0,JAM1,
  806.    6,148,
  807.    NULL,
  808.    "Extension",
  809.    NULL
  810. };
  811.  
  812. struct IntuiText IText38 = {
  813.    1,0,JAM1,
  814.    6,159,
  815.    NULL,
  816.    "Filename",
  817.    &IText39
  818. };
  819.  
  820. struct IntuiText IText37 = {
  821.    1,0,JAM1,
  822.    5,13,
  823.    NULL,
  824.    "Directory",
  825.    &IText38
  826. };
  827.  
  828. #define IntuiTextList2 IText37
  829.  
  830. struct NewWindow NewFNWindow = {
  831.    6,9,
  832.    307,187,
  833.    0,1,
  834.    MOUSEMOVE+GADGETDOWN+GADGETUP,
  835.    WINDOWDRAG+ACTIVATE,
  836.    &DirName,
  837.    NULL,
  838.    "Enter filename",
  839.    NULL,
  840.    NULL,
  841.    5,5,
  842.    640,200,
  843.    WBENCHSCREEN
  844. };
  845.